package com.xxxx.yebserver.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("websocket发送消息对象")
public class ChatMessageVo {
    @ApiModelProperty(value = "从哪里发送")
    private String from;

    @ApiModelProperty(value = "发送到哪里")
    private String to;

    @ApiModelProperty(value = "发送内容")
    private String content;

    @ApiModelProperty(value = "发送时间")
    private Date date;

    @ApiModelProperty(value = "发送者昵称")
    private String fromNickName;

    @ApiModelProperty(value = "文件类型，1文本，2是图片")
    private Integer type = 1;
}
